package com.hbean.system.config;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description: 基类
 * @Project: hbean
 * @Author: hjibo
 * @CreateDate: 2018-09-29 09:49
 * @ModificationHistory:
 */
public class Base {

    protected final String SUCCESS_MSG = "成功";
    protected final int SUCCESS_CODE = 0; //注：layui的table返回code为0才能解析数据
    protected final String ERROR_MSG = "失败";
    protected final int ERROR_CODE = -1;
    protected final long LONG_0L = 0L;

    protected Map<String,Object> mapResult(int code,String msg,long count,Object data){
        Map<String,Object> map = new HashMap();
        map.put("code",code);
        map.put("msg",msg);
        map.put("count",count);
        map.put("data",data);
        return map;
    }
}
